package com.one.group.admin.mapper;
import com.one.group.model.entity.ChargeInfo;
import com.one.group.model.vo.PayerInfoVo;
import com.mybatisflex.core.BaseMapper;
import com.one.group.model.entity.SpBill;
import com.one.group.model.vo.SpBillQueryVo;

import java.math.BigDecimal;
import java.util.List;

public interface SpBillMapper extends BaseMapper<SpBill> {
    Boolean billAdd(SpBill spBill);

    List<SpBillQueryVo> myQueryList(String name,Integer notification,Integer status,Long tenantId);

    List<PayerInfoVo> Payerlist(String name);

    List<SpBillQueryVo> myPayerBillQuery(Long payerId,Integer payerType, Integer i, Long tenantId);

    boolean payBillByPrepaid(Long payerId, Integer payerType, BigDecimal amount, Long tenantId);

    BigDecimal paiedTotalAmount(Long tenantId);

    ChargeInfo queryChargeInfo(Long id);
}
